--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit be285ed66b451fce3fe8b88b00a368fb95568cf0
Parents : 03b47ba
Author : Ivan <ivan@quad4.io>
Signature : Invalid signer <e46112d44649266d71fe2193e00a4710>, author is <ivan@quad4.io>
Date : 2026-07-10T08:10:59-05:00
feat(themes): add new themes.xml for API 29+ and remove deprecated isLightTheme from main themes.xml
Changes
2 files changed, 17 insertions(+), 2 deletions(-)
Diff
diff --git a/android/app/src/main/res/values-v29/themes.xml b/android/app/src/main/res/values-v29/themes.xml
new file mode 100644
index 00000000..967225d8
--- /dev/null
+++ b/android/app/src/main/res/values-v29/themes.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <!-- API 29+: WebView prefers-color-scheme follows isLightTheme when targetSdk >= 33. -->
+ <style name="Theme.MeshChatX" parent="Theme.MaterialComponents.DayNight.NoActionBar">
+ <item name="colorPrimary">@color/purple_500</item>
+ <item name="colorPrimaryVariant">@color/purple_700</item>
+ <item name="colorOnPrimary">@color/white</item>
+ <item name="colorSecondary">@color/teal_200</item>
+ <item name="colorSecondaryVariant">@color/teal_700</item>
+ <item name="colorOnSecondary">@color/black</item>
+ <item name="android:statusBarColor">@android:color/black</item>
+ <item name="android:navigationBarColor">@color/meshchat_canvas</item>
+ <item name="android:windowBackground">@color/meshchat_canvas</item>
+ <item name="android:colorBackground">@color/meshchat_canvas</item>
+ <item name="android:isLightTheme">false</item>
+ </style>
+</resources>
diff --git a/android/app/src/main/res/values/themes.xml b/android/app/src/main/res/values/themes.xml
index 39186615..d60c2e82 100644
--- a/android/app/src/main/res/values/themes.xml
+++ b/android/app/src/main/res/values/themes.xml
@@ -11,7 +11,5 @@
<item name="android:navigationBarColor">@color/meshchat_canvas</item>
<item name="android:windowBackground">@color/meshchat_canvas</item>
<item name="android:colorBackground">@color/meshchat_canvas</item>
- <!-- WebView prefers-color-scheme follows isLightTheme when targetSdk >= 33. -->
- <item name="android:isLightTheme">false</item>
</style>
</resources>
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────